/**
 * 
 */
package sqs.model;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * @author kjleng
 *
 */
public class SingleAnsMCQQuestionAnswer extends Answer {
	private SingleAnsMCQOptionAnswer mcqOptionAnswer = new SingleAnsMCQOptionAnswer();
	private List<SingleAnsMCQOptionAnswer> singleAnsMCQOptionAnswers;
	public void setNumericValue(int val){}
	public int getNumericValue(){
		return 0;
	}
	
	public List<Option> getOptions(){
		List<Option> options = new ArrayList<Option>();
		Option option = mcqOptionAnswer.getOption();
		options.add(option);		 
		return options;
	}
	
	public void addOption(Option option){
		mcqOptionAnswer.setOption(option);
		singleAnsMCQOptionAnswers = new ArrayList<SingleAnsMCQOptionAnswer>();
		singleAnsMCQOptionAnswers.add(mcqOptionAnswer);
	}
	
	public SingleAnsMCQOptionAnswer getMcqOptionAnswer() {
		return mcqOptionAnswer;
	}

	public void setMcqOptionAnswer(SingleAnsMCQOptionAnswer mcqOptionAnswer) {
		this.mcqOptionAnswer = mcqOptionAnswer;
	}

	public List<SingleAnsMCQOptionAnswer> getSingleAnsMCQOptionAnswers() {
		return singleAnsMCQOptionAnswers;
	}

	public void setSingleAnsMCQOptionAnswers(
			List<SingleAnsMCQOptionAnswer> singleAnsMCQOptionAnswers) {
			mcqOptionAnswer = singleAnsMCQOptionAnswers.get(0);
			this.singleAnsMCQOptionAnswers = singleAnsMCQOptionAnswers;
	}

	
}
